#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# Test JavaScript support: maximum needed for phase2_pushback.

printf '<![CDATA0' > xg-js-12a.js
printf '<![CDATA012345' > xg-js-12b.js

: ${XGETTEXT=xgettext}
LANGUAGE= LC_ALL=C ${XGETTEXT} --no-location -d xg-js-12.tmp xg-js-12a.js 2>xg-js-12.err
result=$?
cat xg-js-12.err
test $result = 0 || Exit 1

: ${XGETTEXT=xgettext}
LANGUAGE= LC_ALL=C ${XGETTEXT} --no-location -d xg-js-12.tmp xg-js-12b.js 2>xg-js-12.err
result=$?
cat xg-js-12.err
test $result = 0 || Exit 1

exit 0
